const http = require("http");

const app = http.createServer((req,res)=>{
    let ram = new Date().toLocaleDateString(); // 返回日期
    res.end(ram)
})

app.listen("8002",()=>{
    console.log("服务器启动成功：http://127.0.0.1:8002");
})

